<template>
  <div class="homePageMain">
    <keep-alive>
      <router-view></router-view>
    </keep-alive>
    <div class="bottom_nav">
      <div class="tap" @click="go('#/main/homePage')">
       主页
      </div>
      <div class="tap" @click="go('#/main/minePage')">
       我的
      </div>
    </div>
  </div>
</template>
<script>
  import Vue from 'vue'
  import homePage from './component/homePage'
  import minePage from './component/minePage'
  export default {
    name: 'main', //这个组件的名字
    components:{},
    mounted() {
      this.init();
    },
    data() {
      return {
        msg: 'hi,shit@!'
      }
    },
    methods: {
      init: function () {
          console.log("主页")
      },
      go(url){
        window.location.href = url;
      }
    }
  }
</script>
<style>
.homePageMain{
  height: 100%;
  background: white;
  overflow: scroll;
  padding-bottom: 45px;
  box-sizing: border-box;
}
</style>
